﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Data.implement;

namespace Services.Interface
{
    public interface IWeixinAuthService
    {
        bool GetToken(string code, out string token, out string openId, out string errorCode, out string errorMsg);

        WeiXinUser GetUser(string token, string openId, out string errorMsg, out string errorCode);

        bool RefreshToken(string token, out string openId, out string errorMsg, out string errorCode);

        WeiXinUser PullWeiXinUser(string code, out string errorCode, out string errorMsg);
    }
}
